<template>
  <div class="dashboard-container">
    
    <button type="button" class="btn btn-success" title="Popover title"  
			data-container="body" data-toggle="popover" data-placement="top" 
			data-content="顶部的 Popover 中的一些内容">
		顶部的 Popover
	</button>
  <button @click="changeTheme">切换主题</button>
  </div>
</template>

<script>

export default {
  name: 'dashboard',
  mounted: function() {
    $("[data-toggle='popover']").popover()
  },

  methods: {
    changeTheme() {
      debugger
      if ($('body').hasClass('flat-blue')) {
        $('body').attr('class', 'flat-green')
      } else {
        $('body').attr('class', 'flat-blue')
      }
    }
  }
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
